package lwlk.tools;


import lwlk.model.User;
import org.beetl.sql.core.*;
import org.beetl.sql.core.db.DBStyle;
import org.beetl.sql.core.db.MySqlStyle;
import org.beetl.sql.ext.DebugInterceptor;
import org.beetl.sql.ext.gen.GenConfig;
import org.beetl.sql.ext.gen.GenFilter;

public class Gen {

    public static void main(String[] args) throws Exception {

        ConnectionSource source = ConnectionSourceHelper.getSimple(
                "com.mysql.jdbc.Driver",
                "jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=false",
                "root",
                "root");

        DBStyle mysql = new MySqlStyle();

        SQLLoader loader = new ClasspathLoader("/sql");

        UnderlinedNameConversion nc = new  UnderlinedNameConversion();

        SQLManager sqlManager = new SQLManager(mysql,loader,source,nc,new Interceptor[] { new DebugInterceptor() });


    }
}
